﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类View_ExamPlaceSpecialityKindsGroupMapping 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class View_ExamPlaceSpecialityKindsGroupMapping : Entity 
	{
        public View_ExamPlaceSpecialityKindsGroupMapping() : base("View_ExamPlaceSpecialityKindsGroupMapping") { }

		#region Model
		private string _GroupNo;
		private string _GroupName;
		private string _ExamPlaceNO;
		private string _SpecialityKindsNO;
		private int? _TotalAcount;
		private int? _ActualAcount;
		private int? _OpenAcount;
		private string _DisplayText;
		private int? _IsFull;
		private string _Sort;
		/// <summary>
		/// 
		/// </summary>
		public string GroupNo
		{
			get{ return _GroupNo; }
			set
			{
				this.OnPropertyValueChange(_.GroupNo,_GroupNo,value);
				this._GroupNo=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string GroupName
		{
			get{ return _GroupName; }
			set
			{
				this.OnPropertyValueChange(_.GroupName,_GroupName,value);
				this._GroupName=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ExamPlaceNO
		{
			get{ return _ExamPlaceNO; }
			set
			{
				this.OnPropertyValueChange(_.ExamPlaceNO,_ExamPlaceNO,value);
				this._ExamPlaceNO=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string SpecialityKindsNO
		{
			get{ return _SpecialityKindsNO; }
			set
			{
				this.OnPropertyValueChange(_.SpecialityKindsNO,_SpecialityKindsNO,value);
				this._SpecialityKindsNO=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? TotalAcount
		{
			get{ return _TotalAcount; }
			set
			{
				this.OnPropertyValueChange(_.TotalAcount,_TotalAcount,value);
				this._TotalAcount=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? ActualAcount
		{
			get{ return _ActualAcount; }
			set
			{
				this.OnPropertyValueChange(_.ActualAcount,_ActualAcount,value);
				this._ActualAcount=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? OpenAcount
		{
			get{ return _OpenAcount; }
			set
			{
				this.OnPropertyValueChange(_.OpenAcount,_OpenAcount,value);
				this._OpenAcount=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DisplayText
		{
			get{ return _DisplayText; }
			set
			{
				this.OnPropertyValueChange(_.DisplayText,_DisplayText,value);
				this._DisplayText=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? IsFull
		{
			get{ return _IsFull; }
			set
			{
				this.OnPropertyValueChange(_.IsFull,_IsFull,value);
				this._IsFull=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Sort
		{
			get{ return _Sort; }
			set
			{
				this.OnPropertyValueChange(_.Sort,_Sort,value);
				this._Sort=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 是否只读
		/// </summary>
		public override bool IsReadOnly()
		{
			return true;
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.GroupNo,
				_.GroupName,
				_.ExamPlaceNO,
				_.SpecialityKindsNO,
				_.TotalAcount,
				_.ActualAcount,
				_.OpenAcount,
				_.DisplayText,
				_.IsFull,
				_.Sort};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._GroupNo,
				this._GroupName,
				this._ExamPlaceNO,
				this._SpecialityKindsNO,
				this._TotalAcount,
				this._ActualAcount,
				this._OpenAcount,
				this._DisplayText,
				this._IsFull,
				this._Sort};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._GroupNo = DataUtils.ConvertValue<string>(reader["GroupNo"]);
			this._GroupName = DataUtils.ConvertValue<string>(reader["GroupName"]);
			this._ExamPlaceNO = DataUtils.ConvertValue<string>(reader["ExamPlaceNO"]);
			this._SpecialityKindsNO = DataUtils.ConvertValue<string>(reader["SpecialityKindsNO"]);
			this._TotalAcount = DataUtils.ConvertValue<int?>(reader["TotalAcount"]);
			this._ActualAcount = DataUtils.ConvertValue<int?>(reader["ActualAcount"]);
			this._OpenAcount = DataUtils.ConvertValue<int?>(reader["OpenAcount"]);
			this._DisplayText = DataUtils.ConvertValue<string>(reader["DisplayText"]);
			this._IsFull = DataUtils.ConvertValue<int?>(reader["IsFull"]);
			this._Sort = DataUtils.ConvertValue<string>(reader["Sort"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._GroupNo = DataUtils.ConvertValue<string>(row["GroupNo"]);
			this._GroupName = DataUtils.ConvertValue<string>(row["GroupName"]);
			this._ExamPlaceNO = DataUtils.ConvertValue<string>(row["ExamPlaceNO"]);
			this._SpecialityKindsNO = DataUtils.ConvertValue<string>(row["SpecialityKindsNO"]);
			this._TotalAcount = DataUtils.ConvertValue<int?>(row["TotalAcount"]);
			this._ActualAcount = DataUtils.ConvertValue<int?>(row["ActualAcount"]);
			this._OpenAcount = DataUtils.ConvertValue<int?>(row["OpenAcount"]);
			this._DisplayText = DataUtils.ConvertValue<string>(row["DisplayText"]);
			this._IsFull = DataUtils.ConvertValue<int?>(row["IsFull"]);
			this._Sort = DataUtils.ConvertValue<string>(row["Sort"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","View_ExamPlaceSpecialityKindsGroupMapping");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field GroupNo = new Field("GroupNo","View_ExamPlaceSpecialityKindsGroupMapping","GroupNo");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field GroupName = new Field("GroupName","View_ExamPlaceSpecialityKindsGroupMapping","GroupName");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ExamPlaceNO = new Field("ExamPlaceNO","View_ExamPlaceSpecialityKindsGroupMapping","ExamPlaceNO");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field SpecialityKindsNO = new Field("SpecialityKindsNO","View_ExamPlaceSpecialityKindsGroupMapping","SpecialityKindsNO");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field TotalAcount = new Field("TotalAcount","View_ExamPlaceSpecialityKindsGroupMapping","TotalAcount");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ActualAcount = new Field("ActualAcount","View_ExamPlaceSpecialityKindsGroupMapping","ActualAcount");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field OpenAcount = new Field("OpenAcount","View_ExamPlaceSpecialityKindsGroupMapping","OpenAcount");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field DisplayText = new Field("DisplayText","View_ExamPlaceSpecialityKindsGroupMapping","DisplayText");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsFull = new Field("IsFull","View_ExamPlaceSpecialityKindsGroupMapping","IsFull");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Sort = new Field("Sort","View_ExamPlaceSpecialityKindsGroupMapping","Sort");
		}
		#endregion


	}
}

